package com.example.model23.test3;

// 上下文环境
public class Context {
    private Vehicle vehicle;

    public Context(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    public void executeMove() {
        vehicle.move();
    }
}